<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="sidebar">
	<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
	
   <h:form>		
		<h:outputText value="Recruitment Request Form Report" styleClass="outputTextTitle"/>	
            
	             <p:scrollPanel style="width:900px;height:600px" mode="native">
	             <p:dataTable id="viewrrfs" value="#{rRFReportExportBean.recruitmentRequestList}" var="viewrrf" paginator="true" rows="25">  
	  			
		           <p:column>
				        <f:facet name="header">  
		            		<h:outputText value="S.No" />  
		       		    </f:facet>   
		                <h:outputText value="#{viewrrf.sNo}" />
		            </p:column> 
		           
		            <p:column> 
		               <f:facet name="header">  
		            		<h:outputText value="RRF Code" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.recruitmentRequestCode}" />
		            </p:column>  
		  
		            <p:column> 
		               <f:facet name="header">  
		            		<h:outputText value="Raised By" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.employee.firstName} #{viewrrf.employee.lastName}" />  
		            </p:column> 
		            
		            <p:column> 
		               <f:facet name="header">  
		            		<h:outputText value="Recruiter Name" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.recruiter.firstName} #{viewrrf.recruiter.lastName}" />  
		            </p:column> 
		            
		            <p:column> 
		               <f:facet name="header">  
		            		<h:outputText value="Center Head Name" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.centerHead.firstName} #{viewrrf.centerHead.lastName}" />  
		            </p:column> 
		            
		            <p:column>
		              <f:facet name="header">  
		            		<h:outputText value="Request Date" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.requestDate}">
		                	<f:convertDateTime pattern="dd-MMM-yyyy HH:mm a"/>
		                </h:outputText>  
		            </p:column>  
		            
		            <p:column>
		              <f:facet name="header">  
		            		<h:outputText value="Module Name" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.technology.displayName}"/>
		            </p:column> 
		             
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="No of Resources" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.noofPositions}"/> 
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Interview Level" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.interviewLevel}" />  
		            </p:column> 
		            
		             <p:column>  
		               <f:facet name="header">  
		            		<h:outputText value="Interviewer1 Name" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.interviewer1.firstName} #{viewrrf.interviewer1.lastName}" />  
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Interviewer2 Name" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.interviewer2.firstName} #{viewrrf.interviewer2.lastName}" />  
		            </p:column> 
		             
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Relavent Exp" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.relaventExperienceFrom} - #{viewrrf.relaventExperienceTo}" />  
		            </p:column>  
		            
		            <p:column>  
		              <f:facet name="header">  
		            		<h:outputText value="Domain Exp" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.domainExperienceFrom} - #{viewrrf.domainExperienceTo}" />  
		            </p:column>  
		            
		            <p:column>  
		              <f:facet name="header">  
		            		<h:outputText value="Salary Range(INR)" />  
		       		   </f:facet>
		                <h:outputText value="#{viewrrf.salaryRangeFrom} - #{viewrrf.salaryRangeTo}" />  
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Band" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.band.band}" />  
		            </p:column> 
		            
		             <p:column> 
		               <f:facet name="header">  
		            		<h:outputText value="Business Function" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.band.businessFunction}" />  
		            </p:column> 
		            
		             <p:column>
		               <f:facet name="header">  
		            		<h:outputText value="Support Function" />  
		       		   </f:facet>  
		                <h:outputText value="#{viewrrf.band.supportFunction}" />  
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Hire Mode" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.recruitmentMode}" />  
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Recruitment Priority" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.recruitmentPriority}" />  
		            </p:column> 
		            
		            <p:column> 
		              <f:facet name="header">  
		            		<h:outputText value="Recruitment End Date" />  
		       		   </f:facet> 
		                <h:outputText value="#{viewrrf.recritmentEndDate}" >
		                	<f:convertDateTime pattern="dd-MMM-yyyy"/>
		                </h:outputText>  
		            </p:column>		        
		            
	            </p:dataTable> 	
	            </p:scrollPanel>  
	            
	                   
        
         
         <p:panelGrid columns="4">
         	<h:commandLink>  
		            <p:graphicImage value="/resources/styles/images/excel.png" title="Export to Excel"/>  
		            <p:dataExporter type="xls" target="viewrrfs" fileName="RRF_Report" />  
		        </h:commandLink>  
		        <h:commandLink>  
		            <p:graphicImage value="/resources/styles/images/pdf.png" title="Export to PDF"/>  
		            <p:dataExporter type="pdf" target="viewrrfs" fileName="RRF_Report"/>  
		        </h:commandLink>  
		        <h:commandLink>  
		            <p:graphicImage value="/resources/styles/images/xml.png" title="Export to XML"/>  
		            <p:dataExporter type="xml" target="viewrrfs" fileName="RRF_Report" />  
		        </h:commandLink>	
		        <h:commandLink>  
		            <p:graphicImage value="/resources/styles/images/csv.png" title="Export to CSV"/>  
		            <p:dataExporter type="csv" target="viewrrfs" fileName="RRF_Report" />  
		        </h:commandLink>          
         </p:panelGrid>         		
	 	
		</h:form>
	</ui:define>
</ui:composition>